package ${package.Controller};

import com.zlyx.easyswagger.annotations.SpringMapping;
<#if restControllerStyle>
import com.zlyx.easyswagger.annotations.SpringController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
<#if superControllerClassPackage??>
import ${superControllerClassPackage};
</#if>
import ${package.Service}.${table.serviceName};
import ${package.Entity}.${entity};

/**
 * ${table.comment!}前端控制器
 * @author ${author}
 * @date ${date}
 */
<#if restControllerStyle>
@SpringController(value = {"<#if package.ModuleName??>/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle??>${controllerMappingHyphen}<#else>${table.entityPath}</#if>"}, todo = {"${table.comment}前端控制器"})
<#else>
@Controller
</#if>
<#if kotlin>
class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}<${table.serviceName}, ${entity}>()</#if>
<#else>
<#if superControllerClass??>
public class ${table.controllerName} extends ${superControllerClass}<${table.serviceName}, ${entity}> {
<#else>
public class ${table.controllerName} {
</#if>
    
    @SpringMapping(value = {"/demo"}, todo = {"easy-web示例方法"}, notes = "easy-swagger示例方法简介")
    public String demoMethod(String name, int age){
        return name + "@" + age;
    }
}
</#if>
